<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8"
         contentType="text/html;charset=utf-8" %>
<%@ include file="/common/taglibs.jsp" %>
<s:action name="user!view" var="view" executeResult="false"/>

<head>
    <title>查看${view.user.nickname}的信息</title>

</head>
<body>
<div id="wrapper">

    <%@ include file="/include/left.jsp" %>

    <div id="page-wrapper" class="gray-bg ">

        <div class="row wrapper border-bottom white-bg page-heading">
            <div class="col-lg-10">
                <h2>个人中心</h2>
                <ol class="breadcrumb">
                    <li>
                        <a href="${ctx}">首页</a>
                    </li>
                    <li>
                        <a>用户中心</a>
                    </li>
                    <li class="active">
                        <strong>个人中心</strong>
                    </li>
                </ol>
            </div>
        </div>

        <div class="wrapper wrapper-content animated fadeInRight">
            <div class="row">
                <div class="col-lg-12">

                    <div class="ibox float-e-margins">

                        <div class="ibox-content">
                            <form method="get" class="form-horizontal">
                                <div class="form-group">
                                    <div class="col-sm-offset-1 col-sm-5">
                                        <div class="profile-image">
                                            <img src="${view.user.photo}" class="img-circle circle-border m-b-md" alt="profile">
                                        </div>
                                        <div class="profile-info">
                                            <div class="">
                                                <div>
                                                    <h2 class="no-margins">
                                                        ${view.user.nickname}
                                                    </h2>
                                                    <h4> 账号：${view.user.username}</h4>
                                                    <small>
                                                        注册时间: <s:date name='%{#view.user.addTime}' format='yyyy-MM-dd HH:mm'/>
                                                    </small>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <div class="hr-line-dashed"></div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">姓名：</label>

                                    <div class="col-sm-4">
                                        <p class="form-control-static">${view.user.realname}</p>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-2 control-label">性别：</label>

                                    <div class="col-sm-4">
                                        <p class="form-control-static">
                                            <c:if test="${view.user.male==true}">男</c:if>
                                            <c:if test="${view.user.male==false}">女</c:if>
                                        </p>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-2 control-label">生日：</label>
                                    <div class="col-sm-4">
                                        <p class="form-control-static">
                                            <s:date name='%{#view.user.birthday}' format='yyyy-MM-dd'/>
                                        </p>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-2 control-label">年龄：</label>
                                    <div class="col-sm-4">
                                        <p class="form-control-static">${view.user.age}</p>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-2 control-label">手机号码：</label>
                                    <div class="col-sm-4">
                                        <p class="form-control-static">${view.user.username}</p>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-2 control-label">电子邮件：</label>
                                    <div class="col-sm-4">
                                        <p class="form-control-static">${view.user.email}</p>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-2 control-label">个性签名：</label>
                                    <div class="col-sm-4">
                                        <p class="form-control-static">${view.user.intro}</p>
                                    </div>
                                </div>




                                <div class="hr-line-dashed"></div>
                                <div class="form-group">
                                    <div class="col-sm-4 col-sm-offset-2">
                                        <a href="${ctx}/user/edit" class="btn btn-primary" >编辑个人资料</a>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <%@ include file="/common/footer.jsp" %>

    </div>
</div>

<script>

</script>
</body>

